package com.vhall.component.plugin.common.constant;

import java.io.Serializable;

/**
 * @author rui.zhou
 * @date 2021/4/20 15:45
 */
public class RoomConstant implements Serializable {


    public static final String WARM_INFO = "warm:info:";

    public static final String TELL_STREAM = "lives/tell-stream-running";

    public static final String EVENT_RECORD_COMPLETE = "CreateRecordComplete";

    public static final String EVENT_ALL_RECORD_COMPLETE = "AllTranscodeComplete";

    public static final String EVENT_MEDIA_PACKAGE_COMPLETE = "MediaPackageComplete";

    public static final String EVENT_VIDEO_EDIT_COMPLETE = "VideoEditComplete";

    /**
     * 点播转直播开始
     */
    public static final String EVENT_VODTOLIVE_START = "VODToLiveStart";

    /**
     * 点播转直播播放结束
     */
    public static final String EVENT_VODTOLIVE_END = "VODToLiveEnd";

    /**
     * 点播转直播停止
     */
    public static final String EVENT_VODTOLIVE_STOP = "VODToLiveStop";

    public static final String IS_OPEN_DOCUMENT = "is_open_document";


    public static final String ON = "on";
    public static final String IS_HANDSUP = "is_handsup";
    public static final String IS_DOC = "is_doc";
    public static final String LAYOUT = "layout";
    public static final String DEFINITION = "definition";
    public static final String MAIN_SCREEN = "main_screen";
    public static final String DOC_PERMISSION = "doc_permission";
    public static final String START_TYPE = "start_type";
    public static final String ALL_BANNED = "all_banned";
    public static final String IS_DESKTOP = "is_desktop";
    public static final String OPEN_INVITE_CARD = "open_invite_card";
    public static final String OPEN_QA = "open_qa";


    public static final String VRTC_CONNECT_SUCCESS = "vrtc_connect_success";

    /**
     * 无法上麦消息
     */
    public static final String VRTC_CONNECT_UNABLE_SPEAK = "vrtc_connect_unable_speak";

    /**
     * 预下麦消息
     */
    public static final String VRTC_DISCONNECTING_SPEAK = "vrtc_disconnecting_speak";

    /**
     * 前端后端定时器不一致，所以后端增加4s倒计时，减少延迟
     */
    public static final Long INVITE_VALID_TIME = 60L;

    public static final Long HANDSUP_VALID_TIME = 30L;

    public static final int MAX_SPEAKER = 6;

    /**
     * 待直播/预约
     */
    public static final int STATUS_WAITING = 0;
    /**
     * 直播中
     */
    public static final int STATUS_START = 1;
    /**
     * 直播结束
     */
    public static final int STATUS_STOP = 2;


    /**
     * 上麦
     */
    public static final String UP = "1";

    /**
     * 下麦
     */
    public static final String DOWN = "0";

    public static final String VRTC_UP = "vrtc_connect_open";

    public static final String VRTC_DOWN = "vrtc_connect_close";

    public static final String VRTC_BIG_SCREEN = "vrtc_big_screen_set";

    public static final String VRTC_SPEAKER_SWITCH = "vrtc_speaker_switch";

    public static final String VRTC_DEVICE_CHECK = "vrtc_connect_device_check";

    public static final String VRTC_DISCONNECT_SUCCESS = "vrtc_disconnect_success";


    public static final String LIVE_START = "live_start";
    public static final String LIVE_OVER = "live_over";

    public static final int ACCOUNT_TYPE_MASTER = 1;
    public static final int ACCOUNT_TYPE_WATCH = 2;
    public static final int ACCOUNT_TYPE_VISITOR = 3;


    /**
     * 用户类型: 1-主持人
     */
    public static final String HOST = "1";
    /**
     * 用户类型: 2-观众
     */
    public static final String AUDIENCE = "2";
    /**
     * 用户类型: 3-助理人员
     */
    public static final String ASSISTANT = "3";
    /**
     * 用户类型: 4-嘉宾/互动者
     */
    public static final String INTERACTION = "4";


    public static final int DEFAULT_ZERO = 0;

    public static final int INT_FACE1 = 1;
    public static final int INT_FACE2 = 2;
    public static final int INT_FACE3 = 3;
    public static final int INT_FACE4 = 4;


    /**
     * 观看限制 apply 表 limit_type 字段
     * 0:登录 1:上报 2:默认登录 3:白名单
     */
    public static final int ACCOUNT_TYPE_LOGIN = 0;
    public static final int ACCOUNT_TYPE_APPEAR = 1;
    public static final int ACCOUNT_TYPE_APPROVE = 2;
    public static final int ACCOUNT_TYPE_WHITE = 3;

    public static final int SPEAKER_MAX_NUM = 5;

    /**
     * 直播类型-互动直播
     */
    public static final int INTERACTIVE = 1;

    /**
     * 直播类型-纯直播
     */
    public static final int PURE = 2;


    /**
     * 直播状态-全部
     */
    public static final int LIVE_PLAY_ALL = 1;

    /**
     * 直播状态-直播中
     */
    public static final int LIVE_STATUS_START = 2;

    /**
     * 直播状态-直播回放
     */
    public static final int LIVE_PLAY_BACK = 3;

    /**
     * 观看限制-登录模式
     */
    public static final Integer LIMITE_TYPE_LOGIN = 0;

    /**
     * 观看限制-报名模式
     */
    public static final Integer LIMITE_TYPE_SIGNUP = 1;

    /**
     * 观看限制-默认模式
     */
    public static final Integer LIMITE_TYPE_DEFAULT = 2;

    /**
     * 观看限制-白名单模式
     */
    public static final Integer LIMITE_TYPE_WHITEACCOUNT = 3;

    /**
     * 默认水印模板存储的key
     */
    public static final String DEFAULT_WATERMARK_TEMPLATE = "watermark_default_set";

    /**
     * mock数据标记
     */
    public static final String MOCK_FLAG = "mock";
}
